package com.sx.art2.mapper;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.sx.art2.beans.Art;
import com.sx.art2.beans.AuctionInfo;
import com.sx.art2.tools.Page;

public interface AuctionInfoMapper {
	
	void insert(AuctionInfo auctionInfo);
	List<AuctionInfo> byStatelist(@Param("state") int state);
	List<AuctionInfo> list(@Param("page")Page page,@Param("state") int state);
	AuctionInfo selectByauctionInfoId(@Param("auctionInfoId") int auctionInfoId);//级联查询
	AuctionInfo selectByauctionInfoId2(@Param("auctionInfoId") int auctionInfoId);
	void updateAuctionNowPrice(@Param("auctionNowPrice") float auctionNowPrice,@Param("auctionInfoId") int auctionInfoId);
	void auctionDefer(@Param("auctionTime") String auctionTime,@Param("auctionInfoId") int auctionInfoId);
	AuctionInfo getArtInfo(@Param("auctionInfoId") int auctionInfoId);
	void update(AuctionInfo auctionInfo);
	void updateAuctionNum(@Param("auctionInfoId") int auctionInfoId);//更新拍卖次数
	int getTotalCount();
	List<AuctionInfo> selectAll(Art art);
	List<AuctionInfo> selectLikeAuction(@Param("categoryId") Integer categoryId,@Param("artSize") String artSize,@Param("auctionNowPrice") String auctionNowPrice);
	List<AuctionInfo> selectLikePreviewAuction(@Param("categoryId") Integer categoryId,@Param("artSize") String artSize,@Param("auctionNowPrice") String auctionNowPrice);
	void updateState(@Param("auctionInfoId") int auctionInfoId,@Param("auctionState")int auctionState);
	void auctionComfirm(@Param("auctionInfoId") int auctionInfoId,@Param("auctionState")int auctionState);
	List<AuctionInfo> success(Page page);
}
